<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <title>用户发货页面</title>
</head>
<?php 
include_once("inc.php");
include_once("base.php");
$action = !empty($_GET['action']) ? trim($_GET['action']) : '';
if($action == 'update')
{
	$id = !empty($_POST['id']) ? intval($_POST['id']) : '';
	$pic = !empty($_POST['pic']) ? trim($_POST['pic']) : '';
	$pic_tel = !empty($_POST['pic_tel']) ? $_POST['pic_tel'] : '';
	db_query("update ordersta set pic='$pic',pic_tel='$pic_tel',zt='已发货' where id=".$id);
	urlMsg("13操作成功", "ordersta_list.php");
}
?>
<script language="javascript">
	function chkinput()
	{
	  if(document.form1.pic.value==""){
		alert("请输入订单负责人");
		document.form1.pic.focus();
		return false;
		}
		if(document.form1.pic_tel.value==""){
		alert("请输入负责人联系方式");
		document.form1.pic_tel.focus();
		return false;
		}
	}
</script>
<body>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
			<td valign="top">
				<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
					<tr bgcolor="#FFFFFF">
						<td height="31">
							<div class="title">配送</div>
						</td>
					</tr>
				</table>
			</td>
			<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
		</tr>
		<tr>
			<td valign="top" bgcolor="#F7F8F9">
				<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr>
						<td colspan="4" height="10"></td>
					</tr>
					<tr>
						<td width="1%">&nbsp;</td>
						<td width="96%">
							<table width="100%">
								<tr>
									<td colspan="2">
										<form name="form1" method="post"  action="?action=update" onSubmit="return check()">
											<input type="hidden" name="id" value="<?php echo $_REQUEST["id"];?>" />
											<table width="100%" class="cont">
												<tr>
													<td width="40%" align="right">订单负责人：</td>
													<td width="">
														<input name="pic" type="text" class="text" size="30"  maxlength="20">
													</td>
												</tr>
												<tr>
													<td align="right">负责人电话：</td>
													<td>
														<input name="pic_tel" type="text" class="text" size="30"  maxlength="50">
													</td>
												</tr>
												<tr>
													<td align="right">&nbsp;</td>
													<td>
														<input class="btn" type="submit" value="提交" />
													</td>
												</tr>
											</table>
										</form>
									</td>
								</tr>
							</table>
						</td>
						<td width="1%">&nbsp;</td>
					</tr>
					<tr><td height="20"></td></tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>